projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f247147
)
* src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
author
Michael Albinus
<michael.albinus@gmx.de>
Thu, 24 Sep 2015 07:36:12 +0000
(09:36 +0200)
committer
Michael Albinus
<michael.albinus@gmx.de>
Thu, 24 Sep 2015 07:36:12 +0000
(09:36 +0200)
src/gfilenotify.c
patch
|
blob
|
history
diff --git
a/src/gfilenotify.c
b/src/gfilenotify.c
index b5baa30d7a4117de825599e5eb31b3dbb7e99346..8b6b0a0cd2dc41bff6f26fe4296928d5873dc487 100644
(file)
--- a/
src/gfilenotify.c
+++ b/
src/gfilenotify.c
@@
-215,6
+215,10
@@
will be reported only in case of the `moved' event. */)
file);
}
+ /* The default rate limit is 800 msec. We adapt this. */
+ g_file_monitor_set_rate_limit (monitor, 100);
+
+ /* Subscribe to the "changed" signal. */
g_signal_connect (monitor, "changed",
(GCallback) dir_monitor_callback, NULL);